package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.monitor.FlowTaskTraceVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.task.FlowTaskInstApproverVo;

import java.util.List;

/**
 * @author: niechanggang
 * @date:2021/9/2 11:20
 * @description:
 */

public interface FlowTaskInstApproverRepository {

    public int  insert(FlowTaskInstApproverVo flowTaskInstApproverVo);

    public List<FlowTaskInstApproverVo> selectListByTaskId(String taskId);

    public   void  updateReadFlag(String taskId, String  userId, Integer  readFlag);

    public   void  todoTaskupdateReadFlag(String taskId, String  userId, Integer  readFlag);
    /**
     * 根据任务id，统计已读任务数
     * @return
     */
    public Integer countReadedTask (List<String> taskIds);


    /**
     * 更新
     *
     * @param entity 实体
     * @return 是否成功
     */
   public boolean updateTaskInstApprovereById(FlowTaskInstApproverVo entity);

}
